home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 January / CHIP_CD_2005-01.iso / service / winamp / files / winamp505_strata.exe / $R0 / Winamp Modern / seek.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2004-07-01  |  3KB  |  77 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global Group Group16;
  6. Global Slider Slider17;
  7. Global Int Int18;
  8. Global Timer Timer19;
  9. Global Text Text20;
  10. Global Layer Layer21;
  11.  
  12.  
  13. System.onScriptLoaded()
  14. {
  15. Group16 = System.getScriptGroup();
  16. Slider17 = Group16.findObject(( "SeekerGhost"));
  17. Text20 = Group16.findObject(( "songticker"));
  18. Layer21 = Group16.findObject(( "player\.seekbar\.pos"));
  19. Timer19 = ( new Timer);
  20. Timer19.setDelay(1000);
  21. return Null;
  22. }
  23.  
  24. Timer19.onTimer()
  25. {
  26. Text20.setText(( ""));
  27. Timer19.stop();
  28. return Null;
  29. }
  30.  
  31. System.onScriptUnloading()
  32. {
  33. delete Timer19;
  34. return Null;
  35. }
  36.  
  37. Slider17.onSetPosition(int newpos)
  38. {
  39. Int Int31;
  40. Float Float30;
  41. Float Float27;
  42. if(Int18) {
  43. Float27 = newpos;
  44. Float27 = ( ( Float27 / 255) * 100);
  45. Float30 = System.getPlayItemLength();
  46. if(( Float30 != 0)) {
  47. Int31 = ( ( Float30 * Float27) / 100);
  48. Timer19.start();
  49. Text20.setText(( ( ( ( ( ( ( "SEEK\:") + System.integerToTime(Int31)) + ( "\/")) + System.integerToTime(Float30)) + ( "\ \(")) + System.integerToString(Float27)) + ( "\%\)\ ")));
  50. }
  51. }
  52. return Null;
  53. }
  54.  
  55. Slider17.onLeftButtonDown(int x, int y)
  56. {
  57. Int18 = 1;
  58. return Null;
  59. }
  60.  
  61. Slider17.onLeftButtonUp(int x, int y)
  62. {
  63. Int18 = 0;
  64. Timer19.start();
  65. Text20.setText(( ""));
  66. return Null;
  67. }
  68.  
  69. Slider17.onSetFinalPosition(int pos)
  70. {
  71. Timer19.start();
  72. Text20.setText(( ""));
  73. return Null;
  74. }
  75.  
  76.  
  77.